/* eslint-disable react-hooks/exhaustive-deps */
import React, { useEffect, useState } from 'react'

export default function App() {
  const [count, setCount] = useState(10)
  useEffect(() => {
    setInterval(() => {
      console.log(1)
      setCount(count - 1)
    }, 1000)
  }, [])
  return (
    <div>
      <h3>count: {count}</h3>
    </div>
  )
}
